﻿@model Business.DbConnect.Motorbike
@{
    ViewBag.Title = "Edit";
}
<h2>
    @Html.DisplayFor(m => m.Plate)</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        @*<legend>Motorbike</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Plate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Plate)
            @Html.ValidationMessageFor(model => model.Plate)
        </div>
*@
        <div class="editor-label">
            @Html.LabelFor(model => model.MotorType)
        </div>
        <div class="editor-field">
            @Html.DropDownList("MotorType")
            @*@Html.DropDownList("MotorType", (SelectList)ViewBag.MotorTypes)
            @Html.DropDownList("MotorType2", (SelectList)ViewBag.MotorTypes) just for test*@
            @Html.ValidationMessageFor(model => model.MotorType)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @*@Html.ActionLink("Back to List", "Index")
    *@
</div>